package com.ybg.employee.business.entity;


import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value = "员工数据映射(增改)", parent = BaseEmployee.class)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tc_employee")
public class Employee extends BaseEmployee{

    @ApiModelProperty("员工职务(外键)")
    @TableField(value = "fk_duty_id",
            insertStrategy = FieldStrategy.NOT_NULL,
            updateStrategy = FieldStrategy.NOT_NULL)
    private Integer fkDutyId;
}
